package tech.dongliang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpSession;

@SpringBootApplication
@Controller
@EnableTransactionManagement
public class ManageApplication {


    public static void main(String[] args) {
        SpringApplication.run(ManageApplication.class, args);
    }

    @RequestMapping({"/", "index"})
    public ModelAndView index(HttpSession session) throws Exception {
        ModelAndView mav = new ModelAndView("login");
        return mav;
    }

}
